<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
    <link rel="stylesheet" href="">
    <link rel="stylesheet" href="/main/css/style.css">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">


</head>
<body>
<!--fixed remove-->
<section class="fixed" style="z-index:999;width: 100%;height: 100%;background-color: #000;position: fixed;left: 0;top: 0;"></section>
<section class="index_page">
    <section class="header">
        <span class="inner_modal"></span>
        <span class="header_logo"></span>
    </section>
    <section class="user_info">

        <div class="avatar">
            <img src="{%$user.headimg|default:'/main/img/avator.jpg'%}">
        </div>
        <p class="point_item total_point">兑换积分:<span class="point">{%$user.intergtal|default:0%}</span></p>
    </section>
    <section class="user_name">{%$user.username|default:''%}<a class="edit" href="/edit"><img src="/main/img/edit_btn.png" alt=""></a></section>
    <section class="wrap_item">
        <ul class="clearfix">
            <li><a href="/sign" class="sign_btn"><span>每日签到</span></a></li>
            <li class="nomr"><a href="/invitation" class="invite_btn"><span>邀请好友</span></a></li>
            <li><a href="/activity" class="enroll_btn"><span>积分兑换</span></a></li>
            <li class="nomr"><a href="/share" class="share_btn"><span>分享上传</span></a></li>
        </ul>
    </section>
    {%if $user.isluck > 0%}
    <a href="/luck" class="lottery_btn">点击抽奖</a>
    {%else%}
    <a href="javascript:void(0)" class="lottery_btn gray_btn">点击抽奖</a>
    {%/if%}
</section>
</body>

<script src="/main/js/jquery-1.12.3.min.js"></script>
<script src="/main/js/common.js"></script>
<script>
    $(function () {
        checkweichatevent();
        touchEvent();
    })

    function touchEvent(){
        $('body').on('touchmove', function (event) {
            event.preventDefault();
        });
    }
</script>
</html>